#ifndef __MSP__H
#define __MSP__H

#define CRC_POLY 0x13

// If defined, set for 20Mhz clock.  Otherwise we have 16.777MHz clock.
//#define CLK_20 1
    

////////////////////////////////////////
// GCC Translations
////////////////////////////////////////
#ifdef __GNUC__

#include <msp430.h>
#include <string.h>

#define __even_in_range(VAR, LEN) VAR
#define INTERRUPT(VEC, NAME) void __attribute__((interrupt (VEC))) NAME(void)
#define INTERRUPT_NEST(VEC, NAME) void __attribute__((interrupt (VEC), signal)) NAME(void)

////////////////////////////////////////
// CCS4 Translations
////////////////////////////////////////
#else

#include "msp430f5510.h"
#define __nop _no_operation
#endif

#endif
